<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ page import="java.sql.Date" %>
<%@ page import="java.util.*" %>
<%@ page import="net.sapfree.core.db.RecordSet"%>
<%@ page import="net.sapfree.core.db.Record"%>
<%
String path = request.getContextPath();
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">    
<meta http-equiv="keywords" content="login,regist first">
<meta http-equiv="description" content="This is login page">

<title>我的飞客</title>
<link href="<%=path%>/include/styleBase/css/fontStyle.css" rel="stylesheet"></link>
<link href="<%=path%>/include/styleBase/css/formStyle.css" rel="stylesheet"></link>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<%
RecordSet moduleset = request.getAttribute("moduleset")==null?null:(RecordSet)request.getAttribute("moduleset");
RecordSet projectset = request.getAttribute("projectset")==null?null:(RecordSet)request.getAttribute("projectset");
Record personinfo = request.getAttribute("personinfo")==null?null:(Record)request.getAttribute("personinfo");
String personname="";
String sex="";
String email="";
String birthday="";
String usertype="";
String location="";
if(personinfo!=null){
	personname = personinfo.getString("PI_FIRSTNAME")+personinfo.getString("PI_LASTNAME");
	sex = personinfo.getString("PI_SEX");
	email = personinfo.getString("PI_EMAIL");
	birthday = personinfo.getString("PI_BIRTHDAY");
	if(birthday!=null && !"".equals(birthday) && birthday.length()>10){
		birthday = birthday.substring(0,10);
	}
	usertype = personinfo.getString("PI_USERTYPE");
	location = personinfo.getString("PI_LOCATIONCODE");
}
%>
</head>
<body>
<form name="frm" method="post">
<br><br><br><br>
<table border="0" cellspacing="20" cellpadding="0" bgcolor="#CCCCCC" width="1000" align="center">
	<tr>
		<td height="200" bgcolor="#FFFFFF">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        	<tr>
           	  <td width="59%">
              <table border="0" cellpadding="0" cellspacing="0" width="100%">
                	<tr><td width="2%" height="35">&nbsp;</td>
                	  <td height="35" colspan="6" class="blueBold14" valign="bottom">注册</td>
               	    </tr>
                    <tr><td height="25">&nbsp;</td>
                	  <td height="25" colspan="6" class="blueNormal12">基本信息</td>
               	    </tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left"><hr size="1" width="98%" color="#999999" align="left"></td>
                    </tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left">
                      <table border="0" cellpadding="0" cellspacing="0" width="98%">
                      	<tr>
                        	<td width="15%" height="30" align="right">姓名：</td>
                            <td width="35%"><%=personname%></td>
                            <td width="15%" align="right">性别：</td>
                            <td width="35%"><%=sex%></td>
                        </tr>
                        <tr>
                        	<td width="15%" height="30" align="right">电子邮箱：</td>
                            <td width="35%"><%=email%></td>
                            <td width="15%" align="right">出生日期：</td>
                            <td width="35%"><%=birthday%></td>
                        </tr>
                        <tr>
                        	<td width="15%" height="30" align="right">用户类别：</td>
                            <td width="35%"><%=usertype%></td>
                            <td width="15%" align="right">Base地：</td>
                            <td width="35%"><%=location%></td>
                        </tr>
                      </table>                      </td>
                    </tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left">业务模块</td>
                    </tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left"><hr size="1" width="98%" color="#999999" align="left"></td>
                    </tr>
                    <tr>
                    	<td height="5">&nbsp;</td>
                	  <td height="5" colspan="6" align="left">
                      <table border="0" cellpadding="0" cellspacing="0" width="98%">
                      	<tr>
                       	  <td height="30" width="15%"></td>
                          <td width="28%" align="center">Free</td>
                          <td width="28%" align="center">外部顾问</td>
                          <td width="29%" align="center">内部顾问</td>
                        </tr>
                        <%
						if(moduleset!=null){
							Record recordmodule;
							for(int m=0;m<moduleset.size();m++){
								recordmodule = moduleset.get(m);
						%>
                        <tr>
                       	  <td width="15%" height="30" align="right"><%=recordmodule.getString("PPM_MODULENAME")%></td>
                          <td width="28%" align="center"><%=recordmodule.getString("PPM_FREE")%></td>
                          <td width="28%" align="center"><%=recordmodule.getString("PPM_WAIBU")%></td>
                          <td width="29%" align="center"><%=recordmodule.getString("PPM_NEIBU")%></td>
                        </tr>
                        <%
							}
						}
						%>
                      </table>                      </td>
           	    	</tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left">项目经验</td>
                    </tr>
                    <tr>
                      <td height="5">&nbsp;</td>
                      <td height="5" colspan="6" align="left"><hr size="1" width="98%" color="#999999" align="left"></td>
                    </tr>
                    <tr>
                    	<td></td>
						<td width="9%">
                        <table></table>                        </td>
                    </tr>
                    <%
					if(projectset!=null){
						Record recordproject;
						String starttime = "";
						String endtime = "";
						for(int p=0;p<projectset.size();p++){
							recordproject = projectset.get(p);
							starttime = recordproject.getString("PPE_STARTTIME");
							if(starttime!=null && !"".equals(starttime) && starttime.length()>10){
								starttime = starttime.substring(0,10);
							}
							endtime = recordproject.getString("PPE_ENDTIME");
							if(endtime!=null && !"".equals(endtime) && endtime.length()>10){
								endtime = endtime.substring(0,10);
							}
					%>                    
                    <tr>
                      <td align="right">&nbsp;</td>
                      <td align="right" nowrap class="blueBold14">时间：</td>
                      <td width="21%" height="35" align="left" nowrap class="blueBold14"><%=starttime%> 至 <%=endtime%></td>
               	      <td width="8%" height="35" align="right" nowrap class="blueBold14">项目名称：</td>
               	      <td width="27%" height="35" align="left" nowrap class="blueBold14"><%=recordproject.getString("PPE_PROJECTNAME")%></td>
                      <td width="12%" align="right" nowrap class="blueBold14">直接签约公司：</td>
                      <td width="21%" align="left" nowrap class="blueBold14"><%=recordproject.getString("PPE_CONTRACTCOMPANYNAME")%></td>
                </tr>
                    
                    <%
						}
					}
					%>

                    <tr>
                      <td align="right"></td>
                      <td height="10" colspan="6" align="right" class="blueBold14"><hr size="1" width="98%" color="#999999" align="center"></td>
                    </tr>
                    <tr>
                      <td align="right">&nbsp;</td>
                      <td height="35" colspan="6" align="center" class="blueBold14">
                      		<table border="0" cellpadding="0" cellspacing="0" width="80">
                                	<tr>
                            			<td width="100" height="20" bgcolor="f6891f" align="center" style="cursor:hand;"><span style="color:#FFFFFF; font-weight:bold; font-size:12px;" onClick="_regist()">完 成</span></td>
                                	</tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="right">&nbsp;</td>
                      <td align="right" class="blueBold14">&nbsp;</td>
                      <td align="right" class="blueBold14">&nbsp;</td>
                      <td height="35" align="right" class="blueBold14">&nbsp;</td>
                      <td colspan="3" align="right" valign="middle" class="orangeNormal14">&nbsp;&nbsp;                     </td>
                    </tr>
              </table>              </td>
        </tr>
        </table>
      </td> 
	</tr>
   
</table>
<br>
<br>
<br>
</form>
</body>

</html>

<script language="javascript">
function _regist(){
	frm.action="<%=request.getContextPath()%>/regist/registservlet?method=registFinish";
	frm.submit();
}
</script>
